<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
  	<link rel="stylesheet" type="text/css" href="__ROOT__/Index/Common/css/login.css"/>
  	<script type="text/javascript" src="__ROOT__/Index/Common/js/jquery-3.2.1.min.js"></script>
	<title>梦芭莎登录</title>
</head>
<body>
 <div class="head">
    <a href="__APP__/Index/index" target="_blank">
        <p><img src="http://i0.mbscss.com/img/moonbasa/2017/xy/M4_5_134701.jpg" alt="" /></p>
    </a>
</div>
<div class="main">
<div class="user_info">
    <div class="user_info_l" >
        <p><img src="http://i0.mbscss.com/img/moonbasa/2017/xy/M8_23_104640.jpg" alt="" /></p> 
    </div>
    <div class="user_info_r" id="ulUserLogin" >
        <div class="login-header">
            <span class="login-txt login_active">普通登录<span class="login_bor_1"></span></span>
            <span onclick="window.location.href='register.html'" class="login-txt_2">注册</span>
        </div>
        <div class="form_style form_style_login">
        		<form id="form" class="login_input_main" method="post">
        			<div class="input_block_1">
        				<div class="f_item">
        					<label for="textLoginID" class="i_label name-label"></label>
        					<input type="text" id="txtLoginID" class="i_text" placeholder="手机号/邮箱" name="txtLoginID" oninput="oneTip()"/>
        					<div id="txtLoginIDTip" class="f_explain ">邮箱/手机号不能为空</div>
        				</div>
        				<div class="f_item">
        					<label for="textLoginPwd" class="i_label pwd-label"></label>
        					<input type="password" id="txtLoginPwd" class="i_text" placeholder="密码" name="txtLoginPwd" oninput="twoTip()"/>
        					<div id="txtLoginPwdTip" class="f_explain ">密码不能为空</div>
        				</div>
        			</div>
        			<div class="f_item">
					<!--<a href="register.html" class="login_reg">注册</a>-->
					<div class="login-line">
						<input type="button" id="btnLogin" class="i_btn_ok" name="btnLogin" value="立即登录"/>
					</div>        				
        			</div>
        		</form>
        </div>
       </div>  
    </div>
</div>
<div class="foot">
    <div class="footer">
        <a href="http://www.moonbasa.com/" rel="nofollow" title="女性内衣专家梦芭莎首页">首页</a> 
        <a href="http://help.moonbasa.com/help/detial/33" rel="nofollow">公司简介</a> 
        <a href="http://www.moonbasa.com/" title="梦芭莎">旗下品牌</a> 
        <a href="http://help.moonbasa.com/help/ShopMap.aspx" rel="nofollow">零售店址</a> 
        <a href="http://union.moonbasa.com" title="梦芭莎网站联盟">梦芭莎网盟</a> 
        <a href="http://fenxiao.moonbasa.com/">网店代理</a> 
        <a href="http://www.moonbasa.com/home/sitemap" target="_blank" title="梦芭莎网店代理">网站地图</a> 
        <a href="http://www.moonbasa.com/category">友情链接</a> 
        <a href="http://help.moonbasa.com/help/jop.html" title="梦芭莎评论">加入我们</a> 
        <br />
        Copyright © 2010-2019 梦芭莎官方网站，广州摩拉网络科技有限公司 All Rights Reserved 粤B2-20080069号
    </div>
</div>	
</body>
<script>
var username=document.getElementById("txtLoginID");
var pwd=document.getElementById("txtLoginPwd");   
var usernameTip=document.getElementById("txtLoginIDTip");
var pwdTip=document.getElementById("txtLoginPwdTip");
function oneTip(){
	if(username.value==""){
		usernameTip.style.display="block";
	}else{
		usernameTip.style.display="none";
	}  
}
function twoTip(){
	if(pwd.value==""){
		pwdTip.style.display="block";
	}else{
		pwdTip.style.display="none";
	}  
}
//console.log("__APP__");
$(".i_btn_ok").click(function(){
	$.ajax({
		type:"POST",
		url:"checkuser",
		async:true,
		data:"email="+$("#txtLoginID").val()+"&pwd="+$("#txtLoginPwd").val(),
		success:function(res){
			if(res.status==1){
				window.location.href="__APP__/Index/index";
			}
		}
	});
	
})
 
</script>	
</html>
